﻿<%@ Page Title="Files" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Files.aspx.cs" Inherits="Templates_Files" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc" %>

<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header ID="ucHeader" runat="server" />
    <div class="tabPage">
        <div class="actions">
            <asp:LinkButton ID="lnkNew" CssClass="add" Text="Add New File" runat="server" />
        </div>
        <telerik:RadGrid ID="grid" SkinID="InlineEdit" AutoGenerateColumns="false" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" DataSourceID="dsFiles" runat="server">
            <MasterTableView DataKeyNames="Id, ConcurencyId, IsDefault" InsertItemDisplay="Bottom">
                <Columns>
                    <acms:RadGridTextBoxColumn HeaderText="Name" DataField="Name" Required="true"/>
                    <acms:RadGridTextBoxColumn HeaderText="Path" Width="250px" DataField="Path" Required="true" />
                    <acms:RadGridRadioButtonColumn HeaderText="Default" DataField="IsDefault" />
                    <acms:RadGridEditColumn />
                    <acms:RadGridDeleteColumn UniqueName="Delete"/>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:TemplateFileDataSource Id="dsFiles" runat="server" />
</asp:Content>

